package com.party.service.excellentparty;

/**
 * Created with IntelliJ IDEA.
 * User: beyond
 * Date: 14-9-18
 * Time: 下午10:37
 * To change this template use File | Settings | File Templates.
 */

import com.party.common.Page;
import com.party.model.ExcellentParty;

import java.util.List;

/**
 * 优秀党员
 */
public interface ExcellentPartyService {
    /**
     * 优秀党员
     * 增删改查
     */
    public int addExcellentParty(ExcellentParty excellentParty);

    public int deleteExcellentPartyByPrimaryKey(Integer id);

    public int deleteExcellentPartyByIds(String ids);

    public ExcellentParty getExcellentPartyByPrimaryKey(Integer id);

    public int updateExcellentPartyByPrimaryKey(ExcellentParty excellentParty);

    /**
     * 获得优秀党员数据列表（分页）
     * @param pageSize
     * @param pageNumber
     * @return
     */
    public Page getExcellentPartyList(ExcellentParty excellentParty, int pageSize, int pageNumber);

    public int addExcellentPartyByUserIds(String []userids);

    public List<ExcellentParty> getAllExcellentParty();

    public List<ExcellentParty> getAllExcellentPartyByCustom();

    public Page getListPageByCustorm(ExcellentParty excellentParty, int pageSize, int pageNumber);
}
